package com.silverbox.waimai.mapper;

import com.silverbox.sweeporder.controller.waimai.outvo.ShopBusinessInfoVo;
import com.silverbox.waimai.entity.TakeOutConfig;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface TakeOutConfigMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TakeOutConfig record);

    int insertSelective(TakeOutConfig record);

    TakeOutConfig selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TakeOutConfig record);

    int updateByPrimaryKey(TakeOutConfig record);

    //查询店铺配送配置
    TakeOutConfig getTakeOutConfigByStoreId(@Param("storeId") Integer storeId);

    String getWaimaiBusinessInfo(@Param("storeId") Integer storeId,@Param("type") Integer type);

    ShopBusinessInfoVo getShopBusinessInfo(@Param("storeId") Integer storeId ,@Param("nowDate") String nowDate);

}